{% extends 'learn_app/base.html' %}
{% block header %}删除主题{% endblock %}
{% block content %} 
你确定要删除《{{topic}}》主题吗？此操作不可恢复!
<form action="{% url 'learn_app:del_topic' topic.id %}" method="post" style="display: inline;">
    {% csrf_token %}  
    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确定删除吗？')">确定删除<br></button>
    <a href="{% url 'learn_app:topics' %}" class="btn btn-secondary">取消</a>
</form>
{% endblock %}